import { _decorator, assetManager, Component, error, log, Node } from 'cc';
const { ccclass, property } = _decorator;


const bundle = 'my-bundle';

@ccclass('TestBundle')
export class TestBundleZip extends Component {

    start() {
        const testBundle = assetManager.getBundle(bundle);
        if (testBundle) {
            console.log('bundle 获取成功');
        }

        assetManager.loadBundle(bundle, (err) => {
            log('Error url [' + err + ']');
            return
        });
    }

    update(deltaTime: number) {
                       
    }
}


